package com.fzn.spring5.test;

import com.fzn.spring5.service.UserService;

// import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @program: spring5_txdemo1
 * 描述：      RunWith   单元测试框架
 *          ContextConfiguration  加载配置文件
 * @author: fzn
 * @create: 2022-02-28 16:58
 **/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:bean1.xml")
public class JTest4 {

    @Autowired
    private UserService userService;

    @Test
    public void test1() {
        userService.accountMoney();
    }
}